﻿using System;
using System.Collections.Generic;

namespace TPLinkNetworking
{
    public class GetSysinfo
    {
        public int err_code { get; set; }
        public string sw_ver { get; set; }
        public string hw_ver { get; set; }
        public string type { get; set; }
        public string model { get; set; }
        public string mac { get; set; }
        public string deviceId { get; set; }
        public string hwId { get; set; }
        public string fwId { get; set; }
        public string oemId { get; set; }
        public string alias { get; set; }
        public string dev_name { get; set; }
        public string icon_hash { get; set; }
        public int relay_state { get; set; }
        public int on_time { get; set; }
        public string active_mode { get; set; }
        public string feature { get; set; }
        public int updating { get; set; }
        public int rssi { get; set; }
        public int led_off { get; set; }
        public double latitude { get; set; }
        public double longitude { get; set; }
    }

    public class System
    {
        public GetSysinfo get_sysinfo { get; set; }
    }

    public class ModuleInformation
    {
        public List<EnergyMonitor> EnergyStats = new List<EnergyMonitor>();
        public System system { get; set; }
    }

    public class GetRealtime
    {
        public double current { get; set; }
        public double voltage { get; set; }
        public double power { get; set; }
        public double total { get; set; }
        public int err_code { get; set; }
    }

    public class Emeter
    {
        public GetRealtime get_realtime { get; set; }
        public DateTime timeStamp { get; set; }
    }
    public class EnergyMonitor
    {
        public Emeter emeter { get; set; }
    }
}